<div id="leftlink">
    <div class="action">All Links</div>
    <?php include("links.php");?>
</div>


<div id="divdetails">
    <div class="action">Action Here | <a href="?page=<?php echo ($page)?>">add</a></div>
    <?php

    if((isset($_GET['itemid'])))
        include($page."_update.php");
    else
        include($page."_add.php");
    ?>

</div>
<div id="mlist">
    <div class="ptitle"> <a href="pages/?page=<?php echo ($page)?>">add</a><div id="searchdiv"><form action="" method="get">
                <input name="qsrh" type="text" id="qsrh" onkeyup="getData('pages/<?php echo $page; ?>_search.php?aj&page=<?php echo $page; ?>&qs='+this.value,'searchres')" value="search" size="40" />
            </form><div id="searchres">Here</div></div>
        <div class="clear"></div>
    </div>
    <div id="mtop" style="clear:both">
        <?php include($page."_view.php"); ?>
    </div>
</div>